package com.dubito.dao.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.dubito.entity.User;
import com.dubito.utils.MyBatisUtil;

public class UserDaoImpl extends BaseDaoImpl<User> {

	public List<User> selectUser_Role(User user){
			
			List<User> users = null;
			SqlSession session = null;
			try {
				session = MyBatisUtil.getSession();
				users = session.selectList(getStatement("selectUser_Role"), user);
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}finally {
				try {
					MyBatisUtil.closeSession();
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}			
			}
			
		return users;
	}
}
